import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

Vue.mixin({
  methods: {
    to(promise) {
      return promise.then(res => [null, res]).catch(error => [error]);
    }
  }
})

new Vue({
  render: h => h(App),
}).$mount('#app')